import java.util.Date;
import java.util.Set;

/**
 * Created by sqy on 2018/12/11.
 */
public class AuditRule {

    private int id;
    private String purpose;
    private Set<String> usedData;
    private Set<String> task;
    private String description;
    private Date createTime;
    private String createBy;

    public AuditRule(){}

    public AuditRule(int id, String purpose, Set<String> usedData, Set<String> task, String description, Date createTime, String createBy) {
        this.id = id;
        this.purpose = purpose;
        this.usedData = usedData;
        this.task = task;
        this.description = description;
        this.createTime = createTime;
        this.createBy = createBy;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public Set<String> getUsedData() {
        return usedData;
    }

    public void setUsedData(Set<String> usedData) {
        this.usedData = usedData;
    }

    public Set<String> getTask() {
        return task;
    }

    public void setTask(Set<String> task) {
        this.task = task;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        return "AuditRule{" +
                "id=" + id +
                ", purpose='" + purpose + '\'' +
                ", usedData=" + usedData +
                ", task=" + task +
                ", description='" + description + '\'' +
                ", createTime=" + createTime +
                ", createBy='" + createBy + '\'' +
                '}';
    }
}
